<?php
/**
 * Created by liuniukeji.com
 * User: 与平台数据库通信
 * Date: 16-3-31
 * @author:zhaojiping QQ: 17620286
 */

namespace Common\Model;
use Think\Model;

class YunshangUserModel extends Model{
    protected $dbName = 'YuShangZhiJia';
    protected $tablePrefix = 'dbo.';
    protected $tableName = 'UserInfo';
    /**
     * 根据手机号查取账户余额
     * 
     */
    public function get_username($phone){
        $get_username=$this->where("Phone='".$phone."'")->getField('userName');
        return $get_username;
    }
}
